HAL FMAC macros migration

This section provides information about the HAL FMAC macros migration.

HAL FMAC clear flag macro

HAL1

HAL2

#define __HAL_FMAC_CLEAR_FLAG
Removed: as it is a dummy Macro and not used in HAL1, the FMAC flags ca not be cleared by software,
        they are automatically cleared by the hardware.

HAL FMAC clear IT macro

HAL1

HAL2

#define __HAL_FMAC_CLEAR_IT
Removed : as it is a dummy Macro and not used in HAL1.

HAL FMAC disable IT macro

HAL1

HAL2

#define __HAL_FMAC_DISABLE_IT
Removed : Use LL_FMAC_DisableIT instead

Related concept: Removal of hardware-related macros in HAL2


HAL FMAC enable IT macro

HAL1

HAL2

#define __HAL_FMAC_ENABLE_IT
Removed : Use LL_FMAC_EnableIT instead

Related concept: Removal of hardware-related macros in HAL2


HAL FMAC get flag macro

HAL1

HAL2

#define __HAL_FMAC_GET_FLAG
Removed : and use instead the following static inline functions to check whether the specified FMAC status flag is set or not:
LL_FMAC_IsActiveFlag_SAT
LL_FMAC_IsActiveFlag_UNFL
LL_FMAC_IsActiveFlag_OVFL
LL_FMAC_IsActiveFlag_X1FULL
LL_FMAC_IsActiveFlag_YEMPTY

Related concept: Removal of hardware-related macros in HAL2


HAL FMAC get IT macro

HAL1

HAL2

#define __HAL_FMAC_GET_IT
Removed : and use instead the following static inline functions to check whether the specified FMAC status flag is set or not:
LL_FMAC_IsActiveFlag_SAT
LL_FMAC_IsActiveFlag_UNFL
LL_FMAC_IsActiveFlag_OVFL
LL_FMAC_IsActiveFlag_X1FULL
LL_FMAC_IsActiveFlag_YEMPTY

Related concept: Removal of hardware-related macros in HAL2


HAL FMAC get IT source macro

HAL1

HAL2

#define __HAL_FMAC_GET_IT_SOURCE
Removed : and use instead the following static inline functions to check whether the specified FMAC interrupt is set or not:
LL_FMAC_IsEnabledIT_SAT
LL_FMAC_IsEnabledIT_UNFL
LL_FMAC_IsEnabledIT_OVFL
LL_FMAC_IsEnabledIT_WR
LL_FMAC_IsEnabledIT_RD

HAL FMAC reset handle state macro

HAL1

HAL2

#define __HAL_FMAC_RESET_HANDLE_STATE
Removed: to use instead HAL_FMAC_DeInit()